<?php
/**
 * Created by PhpStorm.
 * User: xuho
 * Date: 2020-02-15
 * Time: 19:37
 */

namespace app\cdc\validate\admin;


class RenovationValidate extends \app\common\validate\BaseValidate
{
    protected $rule = [
        'content' => 'require',
        'type' => 'require',
        'position' => 'require',
    ];

    protected $message = [
        'content.require' => '内容 必选',
        'type.require' => '类型 必填',
        'position.require' => '定位 必填',
    ];

    protected $scene = [
        'save' => ['type', 'content', 'position'],
        'update' => ['type', 'content', 'position'],
    ];
}